<include file="Public:header"/>
 <script type="text/javascript" charset="utf-8">window.UEDITOR_HOME_URL= "__PUBLIC__/ueditor/";</script>
 <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/editor_config.js"></script>
 <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/editor_all.js"></script>

<form id="goods" method="POST" action="__URL__/save" enctype="multipart/form-data">
<input type="text" name="global_id" size="20" value="{$variable.id}" style="display:none">
<div class="cat" style="width:1000px;margin:0 auto;">
<table border="0" width="100%">
	<tr>
		<td align="right">变量：</td>
		<td align="left">{$variable.global_key}</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td align="left"><input type="text" name="global_name" size="20" value="{$variable.global_name}"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td align="left"><input type="text" name="note" size="20" value="{$variable.note}"></td>
	</tr>
	<tr>
		<td align="right">变量值：</td>
		<td align="left"><textarea id="contents" name="contents">{$variable.global_value}</textarea></td>
	</tr>
</table>
</div>
<div id="save" style="border:1px solid #DFDFDF;background-color:#DFDFDF;padding:5px;height:20px"><input type="submit" value="保存更改"></div>
</form>

</body>
<SCRIPT type="text/javascript">  
    var editor = new UE.ui.Editor({
    initialFrameHeight:250
	,initialFrameWidth:850
}); 
    editor.render("contents");  
</SCRIPT>
</html>